package com.zhs.demoutil.demo2;

public class Main {
    public static void main(String[] args) {
        PricingStrategyFactory pricingStrategyFactory = new PricingStrategyFactory();
        PricingStrategy pricingStrategy = pricingStrategyFactory.createPricingStrategy(5000);

        int quantity = 10000;
        double price = pricingStrategy.calculatePrice(quantity);
        System.out.println("数量：" + quantity);
        System.out.println("费用：" + price);
    }
}